From: Sebastian Keller Date: Sun, 11 Dec 2022 17:27:05 +0000 (+0100) Subject: quickSettings: Use column spacing not row spacing to calculate width X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~206 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=54f112fa59d4694ad67c81fc83d52378a6430273;p=gnome-shell.git quickSettings: Use column spacing not row spacing to calculate width This did not have any not have any noticeable effect, because both are the same size in the default theme. Part-of: --- diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index 19f9a3ca4..e3bbe21c0 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -542,7 +542,7 @@ const QuickSettingsLayout = GObject.registerClass({ ? this._overlay.get_preferred_height(-1) : [0, 0]; - const availWidth = box.get_width() - (this.nColumns - 1) * this.row_spacing; + const availWidth = box.get_width() - (this.nColumns - 1) * this.column_spacing; const childWidth = availWidth / this.nColumns; this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());